            <% content_for :sidebar do -%>
            <div class="side_box">
                <ul class="menu">
                    <li><%= image_tag("server_key.png", :align=>"absmiddle")%> <%= link_to "修改密码", change_password_users_path %></li>
                    <li><%= image_tag("user_go.png", :align=>"absmiddle")%> <%= link_to "我的主页", user_path(current_user.login) %></li>
                </ul>
            </div>
	    <% end -%>
            
            <% content_for :navbar do -%>
            <div class="box">
                <img class="map" align="absmiddle" alt="You are here" src="/images/map.png"/>
                当前位置 
                » <%= link_to "您这儿", :controller =>'browse', :action => 'index' %> 
                » <%= link_to "编辑你的个人信息", edit_user_path(current_user.login) %>
            </div>
            <% end -%>
            
            <div class="box" style="padding:5px 20px">
                <h2>上传头像:</h2>
                <p><%=render :partial => 'shared/userThumbImageNoLink', :object => current_user%></p>
                <% form_tag( {:action => 'update_icon'},:multipart => true ) do -%>
                    <%= file_column_field "user", "image" %>
                    <%= submit_tag '提交' %>
                <% end -%>
                <br/>
            </div>
            <div class="box" style="padding:5px 20px">
                <h2>个人信息:</h2>
                <p><b>Email:</b></p>
                <%= current_user.email%>
                <p><b>居住地:</b></p>
                <% if current_user.community.nil? -%>
                    还没定居呢
                    <%= link_to(", 来定居吧", :controller => 'communities', :action => 'life')%>
                <% else -%>
                    <%= current_user.community.title%> <%= current_user.community.district.title%>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='tip'><%= image_tag("lorry.png", :align=>"absmiddle")%> <%= link_to("我要搬走了!", :controller => 'communities', :action => 'life')%> <%= image_tag("lorry.png", :align=>"absmiddle")%></span>
                <% end -%>
                
                <% form_tag( user_path(current_user), :method => :put ) do -%>
                    <p><b>talks设置:</b></p>
                    <%= select_tag("user[is_show_talks]", options_for_select(@talks_option, current_user.is_show_talks))%>
                    <p><b>邮件通知设置:</b></p>
                    <%= select_tag("user[is_email_notify]", options_for_select(@notify_option, current_user.is_email_notify))%>
                    <%= render :partial => 'userForm' %>
                    <br/>
                    <%= submit_tag '提交' %>
                <% end -%> 
            </div>